package com.huangtang.pc.controller;

import com.huangtang.pc.entity.Order;
import com.huangtang.pc.service.OrderService;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author sunjf
 * @since 2024-01-12
 */
@AllArgsConstructor
@RestController
@RequestMapping("/order")
public class OrderController {

    private final OrderService orderService;

    @GetMapping("/getById")
    public Order getById(){
        return orderService.getById(1);
    }
}
